<template>
  <div class="mainsec-data-container">
    <div class="title">{{ data.title }}</div>
    <div class="data">
        <span class="number">{{ data.number }}</span>
        <span class="unit">{{ data.unit }}</span>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    data: {
      required: true,
    },
  },
};
</script>

<style lang="scss" scoped>
.mainsec-data-container {
    color: white;
    margin-left: 30px;
    .title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    .number {
        font-size: 35px;
        font-weight: bold;
        margin-right: 4px;
    }
    .unit {
        font-size: 15px;
    }
}
</style>
